import { handleRequest } from './index';

// 获取-会议列表
export function getMeetingList(data) {
    return handleRequest({
        url: '/meeting/list',
        method: 'post',
        data
    })
}

// 技术-施组方案交底-列表统计
export function getTechnicalProgramCount(data) {
    return handleRequest({
        url: '/meeting/getTechnicalProgramCount',
        method: 'post',
        data
    })
}

// 获取-会议列表
export function getMeetingListCount(data) {
    return handleRequest({
        url: '/meeting/prof-sub/count',
        method: 'post',
        data
    })
}

// 开始会议
export function startMeeting(data) {
    return handleRequest({
        url: '/meeting/startMeeting',
        method: 'post',
        data
    })
}
// 获取查询会议方案下拉框
export function getSearchList(data) {
    return handleRequest({
        url: '/meeting/meetingConsProProgram',
        method: 'get',
        params: data
    })
}
// 会议纪要
export function writeMeetingSummary(data) {
    return handleRequest({
        url: '/meeting/meetingSummary',
        method: 'post',
        data: data
    })
}
// 频分列表
export function queryMeetingScore(data) {
    return handleRequest({
        url: '/meeting/meetingScore',
        method: 'get',
        params: data
    })
}
// 打分情况
export function meetingScoreDetail(data) {
    return handleRequest({
        url: '/meeting/meetingScoreDetail',
        method: 'get',
        params: data
    })
}

// 查看会议详情
export function getMeeting(data) {
    return handleRequest({
        url: '/meeting',
        method: 'get',
        params: data
    })
}

// 打印会议详情
export function getMeetingPrint(data) {
    return handleRequest({
        url: '/meeting/print',
        method: 'get',
        params: data
    })
}
// 查看会议大屏详情
export function getScreen(data) {
    return handleRequest({
        url: '/meeting/meetingScreen',
        method: 'get',
        params: data
    })
}


// 开始会议
export function meetingSummary(data) {
    return handleRequest({
        url: '/meeting/meetingSummary',
        method: 'post',
        data
    })
}

//查询危险源清单详情
export function getHazardDetail(data) {
    return handleRequest({
        url: '/hazard/hazard',
        method: 'get',
        params: data
    })
}
//获取会议打分列表
export function getMeetingScore(data) {
    return handleRequest({
        url: '/meeting/queryMeetingScore',
        method: 'get',
        params: data
    })
}



//删除危险源清单
export function delHazard(data) {
    return handleRequest({
        url: '/hazard/delete',
        method: 'post',
        data
    })
}

//批量删除危险源清单
export function delsHazard(data) {
    return handleRequest({
        url: '/hazard/delete-batch',
        method: 'post',
        data
    })
}

//会议危险源清单列表
export function getHazardList(data) {
    return handleRequest({
        url: '/hazard/page',
        method: 'post',
        data
    })
}

//编辑危险源清单详情
export function updateHazard(data) {
    return handleRequest({
        url: '/hazard/update',
        method: 'post',
        data
    })
}

//新增危险源清单详情
export function addHazard(data) {
    return handleRequest({
        url: '/hazard/add',
        method: 'post',
        data
    })
}

// 开始会议
export function meetingEmployee(data) {
    return handleRequest({
        url: '/meeting/employee',
        method: 'get',
        params: data
    })
}
// 逻辑删除-111
//meeting/deleteById/{id}
export function deleteById(data) {
    return handleRequest({
        url: '/meeting/deleteById/'+data.id,
        method: 'get',
        params: data
    })
}
// 导入上月危险源清单
export function importLastMouth(data) {
    return handleRequest({
        url: '/hazard/import',
        method: 'get',
        params: data
    })
}

// 结束会议
export function colseMeeting(data) {
    return handleRequest({
        url: '/meeting/endMeeting',
        method: 'get',
        params: data
    })
}





// 获取-会议分类
export function getMeetingType() {
    return handleRequest({
        url: '/meeting-types/enabled/all',
        method: 'get',
    })
}

// 获取-技术-获取专业分包列表
export function getConstructionProgram(data) {
    return handleRequest({
        url: '/meeting/constructionProgram',
        method: 'get',
        params: data
    })
}


// 获取-技术-获取评审方案列表
export function getReviewPlan(data) {
    return handleRequest({
        url: '/meeting/reviewProgram',
        method: 'get',
        params: data
    })
}

// 获取-技术-获取评审方案列表
export function getDisclosurePlan(data) {
    return handleRequest({
        url: '/meeting/allCommentedPlan',
        method: 'get',
        params: data
    })
}

// 获取-技术-获取施组方案列表
export function getTechnicalProgramList(data) {
    return handleRequest({
        url: '/meeting/getTechnicalProgramList',
        method: 'get',
        params: data
    })
}

// 添加-会议列表
export function addMeeting(data) {
    return handleRequest({
        url: '/meeting/create',
        method: 'post',
        data
    })
}

// 编辑-会议列表
export function editMeeting(data) {
    return handleRequest({
        url: '/meeting/update',
        method: 'post',
        data
    })
}

// 打印施工方案交底记录
export function printMeetingDetail(query) {
    return handleRequest({
        url: '/meeting/print',
        method: 'get',
        params: query
    })
}

//新--技术-施组方案交底-新增交底记录
export function createTechnicalProgramConfess(data) {
    return handleRequest({
        url: '/meeting/createTechnicalProgramConfess',
        method: 'post',
        data
    })
}

//新--技术-施组方案交底-获取交底记录列表
export function getTechnicalProgramConfessList(data) {
    return handleRequest({
        url: `/meeting/getTechnicalProgramConfessList/${data.id}`,
        method: 'get',
        data
    })
}
// 统计
export function getCountList(data) {
    return handleRequest({
        url: '/meeting/status/count',
        method: 'post',
        data
    })
}